package com.ifly.voice.recognizer;


public class RecognizerTaskHelper
{

	private RecognizerTask task;
	private Thread rec_thread;

	
	public RecognizerTaskHelper()
	{
		task = new RecognizerTask();
		rec_thread = new Thread(task);
	
	}
	
	public void startThread()
	{
		rec_thread.start();
	}

	public void setRecognitionListener(RecognitionListener recognitionListener)
	{
		task.setRecognitionListener(recognitionListener);
	}

	public void startListen()
	{
		task.start();
	}

	public void stopListen()
	{
		task.stop();
	}
}
